package com.bah.tract.action;

import com.bah.tract.model.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("TOLStoreHome")
public class TOLStoreHome extends EntityHome<TOLStore> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1517798604297698144L;

	public void setStoreId(Long id) {
		setId(id);
	}

	public Long getStoreId() {
		return (Long) getId();
	}

	@Override
	protected TOLStore createInstance() {
		TOLStore tOLStore = new TOLStore();
		return tOLStore;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public TOLStore getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
